package sctu.edu.java.year2016.team05.xiongyihui.day20160522.chapter4_1;

/**
 * Created by 熊怡惠 on 2016/5/22.
 * 判断变量X是奇数还是偶数。
 */

import java.util.Scanner;

public class one {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        System.out.println("请输入一个数：");
        int m = scan.nextInt();

        if (m % 2 == 0) {
            System.out.println("这个数为偶数");
        } else {
            System.out.println("这个数为奇数");
        }
    }
}
